package com.zc.springboot0506.controller.xxxjunhao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RequestMapping("/xjh")
@RestController
public class xxxjunhao {

    @Autowired
    XxxjunhaoService xservice;

    @RequestMapping("/online")
    @ResponseBody
    public String online () {
        return "welcome!";
    }

    @RequestMapping("/test")
    @ResponseBody
    public String test (@RequestParam("name")String name) {
        return name;
    }

    @RequestMapping("/xquery")
    @ResponseBody
    public List<Map> xquery(){
        return xservice.xquery();
    }
}
